<?php
namespace app\admin\validate;
use think\Validate;

class NewsContent extends Validate
{
	protected $rule=[
		'title'=>'unique:news_content,title,id',
	];
	protected $message=[
		'title'=>'该新闻标题已存在',
	];
}